<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>游龙[Youlong]</title>
    <style>
        #threads .thread{
            float:left;
            margin:10px;
            /* width:150px; */
            /* height:150px; */
        }
        #threads .thread[data-status='0']{
            background-color: red;
        }
        #threads .thread[data-status='1']{
            background-color: transparent;
        }
    </style>
</head>
<body>
    <div id="threads"></div>
    <script src="./js/jquery.min.js"></script>
    <script src="./js/html2canvas.min.js"></script>
    <script src="./js/socket.io-client/socket.io.js"></script>
    <script src="./js/Youlong.js"></script>
    <script>
        var o = new Youlong();
        var _socket=o.bind('http://'+document.domain+':5628');
        // 把图片数据回调给socket
        // o.callback(_socket);
        // 把图片数据回调给函数
        // o.callback(function(img){
        //     console.log(img);
        // });
        // 把图片数据回调给地址
        o.callback('php/callback.php');
        o.listen();
    </script>
</body>
</html>
